package com.hawthorn.admin.job;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Slf4j
@Service
public class TestTask
{
  @Transactional(rollbackFor = Exception.class)
  public void run()
  {
    log.info("定时任务执行run方法成功");
  }
}
